namespace FwkLight.Application
{
  public class ValidationData
  {
    public string Message { get; set; }
    public CheckResultType ResultType { get; set; }

    public ValidationData ( string message, CheckResultType resultType )
    {
      Message = message;
      ResultType = resultType;
    }

    public ValidationData ( CheckResultType resultType )
    {
      ResultType = resultType;
    }

    public ValidationData ( string message )
    {
      Message = message;
    }

    public bool HasResultType
    {
      get
      {
        return ResultType != null;
      }
    }

    public bool HasMessage
    {
      get
      {
        return Message != string.Empty;
      }
    }
  }
}